From 8dffdf50cfe53f16b4faf26a25c748078cbf4a77 Mon Sep 17 00:00:00 2001 From: Peter Wagner <​tripolar@gmx.at> Date: Thu, 26 Sep 2013 12:50:25 +0000 Subject: [PATCH] ntpd: switch to new procd init script style Signed-off-by: Peter Wagner SVN-Revision: 38208 --- net/ntpd/files/ntpd.init | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/net/ntpd/files/ntpd.init b/net/ntpd/files/ntpd.init index 5eb75f646..05c317e95 100644 --- a/net/ntpd/files/ntpd.init +++ b/net/ntpd/files/ntpd.init @@ -4,18 +4,17 @@ START=65 STOP=65 -SERVICE_USE_PID=1 +USE_PROCD=1 -start() { +start_service() { # ln -sf /dev/ttyS0 /dev/gps0 # /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf user_exists ntp 123 || user_add ntp 123 123 ntp /var/lib/ntp group_exists ntp 123 || group_add ntp 123 mkdir -p /var/lib/ntp chown -R ntp:ntp /var/lib/ntp - service_start /sbin/ntpd -g -u ntp:ntp -p /var/run/ntpd.pid -} -stop() { - service_stop /sbin/ntpd + procd_open_instance + procd_set_param command /sbin/ntpd -g -u ntp:ntp -p /var/run/ntpd.pid -n + procd_close_instance } -- 2.30.2